'use strict';

const Service = require('egg').Service;

class BannerService extends Service{

	async list(){
		const list = await this.app.mysql.select('yz_banner',{
			where:{ status: 1},
			orders:[['sort', 'asc']],
			limit:6,
			offset:0
		});
		return list;
	}



}

module.exports = BannerService;